﻿using System.Data.Entity.ModelConfiguration;
using Wamm.Model.Entities;

namespace Wamm.EntityFrameworkImplementation.EntityConfigurations {
    public class ParticipantConfiguration : EntityConfiguration<Participant> {
        public ParticipantConfiguration()
        {
            this.Property(f => f.AddedBy).IsRequired();
            this.Property(f => f.LastUpdatedBy).IsRequired();
            // the following are required due to using a not nullable data type:
            // Id
            // ParticipantTypeId
            // PersonId
            // EventId
            // Added
            // LastUpdated
        }
    }
}
